package com.cykj.cusomer;

import com.mysql.cj.protocol.MessageListener;
import org.apache.rocketmq.client.consumer.MessageQueueListener;
import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;

@RocketMQMessageListener(topic = "test-topic",consumerGroup = "${rocketmq.consumer.group}")
@Component
public class CusomerLis implements RocketMQListener {
    @Override
    public void onMessage(Object o) {
        System.out.println("消费者收到消息了");
        System.out.println(o);
    }
}
